<?php
/**
 * @author Tongle Xu <xutongle@gmail.com>
 * @copyright Copyright (c) 2003-2103 Jinan TintSoft development co., LTD
 * @license http://www.tintsoft.com/html/about/copyright/
 * @version $Id$
 */
namespace app\controller;
use Leaps;
use Leaps\Web\Controller;
class SiteController extends Controller {

	/**
	 * 首页
	 * @return string
	 */
	public function indexAction() {
	    $connection = Leaps::$app->db;
	    $command = $connection->createCommand('SELECT * FROM yun_admin');
	     $posts = $command->queryAll();
	    print_r($posts);
	    exit;
		return 'aaa';
	}

	public function aboutAction() {
		return $this->render ( 'about' );
	}
}
